<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 特性绑定事件处理函数 -->
    <button onclick="fn()">保存1</button>
    <button onclick="fn();console.log('jack');">保存2</button>
    <script>
      function fn() {
        console.log("hello");
      }
      // fn()
    </script>
  </body>
</html>
